﻿@model S4Store.Models.AfterSaleCarKPI.CustomerServiceListModel
@{
    ViewBag.Title = "MonthConfig";
    Layout = null;
    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
@{int i = 0;}
<form class="pageForm addpage" action="@Url.Action("ModifyBackInputCustomerServiceDayInput")" method="post">
<div style="height: 100%; width: 100%; overflow: hidden" class="verticalSplitContainer">
    <div class="" style="overflow: auto;" ratio="#100">
         <table  class="rpttable"  style="border-collapse:collapse;">
            <tr height="90"  class="vtr">
                <th class="yellow" ><div class="wd40 pd510">售后前台接待姓名</div>
                </th>
                <th class="yellow" ><div class="wd30 pd510">累计维修后回访数</div>
                </th>
                <th class="yellow" ><div class="wd30 pd510">六月未回厂客户回访数</div>
                </th>
                <th class="yellow" ><div class="wd30 pd510">四月未回厂客户回访数</div>
                </th>
                <th class="yellow" ><div class="wd30 pd510">流失客户重新回厂数</div>
                </th>
                
            </tr>
</table>
</div>
<div class="" style="overflow: auto;" ratio="*">
 <table  class="rpttable"  style="border-collapse:collapse;">
            @foreach (var employee in Model.Employees)
            {
                var item = Model.DayInputs.Where(o => o.EmployeeId == employee.Id).FirstOrDefault();
                if (item == null)
                {
                    item = new S4Store.Domain.AfterSaleKpi.AfterSaleCustomerServiceDayInput();
                }
                <tr>
                    <td><div class="wd40 pd510">@employee.Name<input type="hidden" name="afterSaleCarlist[@i].EmployeeId" value="@employee.Id" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].LJWXHHFS" value="@item.LJWXHHFS" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].LYWHCKHHFS" value="@item.LYWHCKHHFS" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].SYWHCKHHFS" value="@item.SYWHCKHHFS" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].LSKHCXHCS" value="@item.LSKHCXHCS" />
                    </div></td>
                    
                </tr>
               i++;
            }
        </table>
    </div>
    <input type="hidden" name="y" value="@Model.Date.Year" /> <input type="hidden" name="m" value="@Model.Date.Month" />  <input type="hidden" name="d" value="@Model.Date.Day" />
        <div class="formBar" ratio="#30">
    @if (!Model.isconfirmed || CurrentUser.Position == S4Store.Domain.Position.SystemManager)
    {
        <ul>
            <li>
                <div class="simplebutton">
                    <div class="r">
                        <button type="button" class="submit">
                            保存</button></div>
                </div>
            </li>
            <li>确认数据：<input type="checkbox" name="isconfirm" value="true" /></li>
        </ul>
    }
    </div>
</div>
</form>
